import Enums from '@/common/enums.js';

export default {
    data() {
        return {
			Enums
        }
    },
	methods: {
		$toast(title) {
			uni.showToast({
				title,
				icon: "none"
			})
		},
		$success(title) {
			uni.showToast({
				title
			})
		},
		toOrder(cate_id){
			let url = '/pages/home/addOrder'
			if(cate_id) {
				url = url + '?cate_id='+cate_id
			}
			uni.navigateTo({
				url: url
			})
		}
	}
}
